<%layout("/common.html"){%>
<div class="box-header with-border">
	<div class="box-title">
		<i class="fa fa-user-o" style="font-size:12px;color:#6495ED;padding:0px 7px 0px 5px;"></i>
		<i style="font-size:16px">编辑用户</i>
		<li class="long-gray-underline"></li>
	</div>
	<div class="box-title">
		<i class="font-italic" style="font-size:15px;color:#1e5edb;padding:0px 7px 0px 26px;">基本信息</i>
		<div class="box-tools pull-right">
			<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
		</div>
		<li class="short-gray-underline"></li>
	</div>
</div>
<div class="form-content">
	<div class="form-horizontal" id="form">
		<input type="hidden" id="id" value="${user.id}">
		<input type="hidden" id="deptId" value="${user.deptId}">
		<div class="row">
			<div class="col-xs-6">
				<!-- <div class="form-group"> -->
				<div class="input-group">
					<label class="control-label col-sm-4" title="">
							* 登录账号：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input readonly="readonly" value="${user.userCode}"/>
					</div>
				</div>
			</div>
			<div class="col-xs-6">
				<!-- <div class="form-group"> -->
				<div class="input-group">
					<label class="control-label col-sm-4" title="">
							* 所属部门：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="deptName" class="required" value="${user.deptName}" iconClass="btn-input-search" icon="fa-search" onclick="addParentOptionalLayer('/department/tree/','3','部门选择树')"/>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-xs-6">
				<!-- <div class="form-group"> -->
				<div class="input-group">
					<label class="control-label col-sm-4" title="">
							* 员工姓名：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="userName" class="required" value="${user.userName}"/>
					</div>
				</div>
			</div>
			<div class="col-xs-6">
				<!-- <div class="form-group"> -->
				<div class="input-group">
					<label class="control-label col-sm-4" title="">
							 办公电话：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="phone" value="${user.phone}"/>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-xs-6">
				<!-- <div class="form-group"> -->
				<div class="input-group">
					<label class="control-label col-sm-4" title="">
							<span class="required "></span> 账号密码：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="password" type="password"/>
					</div>
				</div>
			</div>
			<div class="col-xs-6">
				<!-- <div class="form-group"> -->
				<div class="input-group">
					<label class="control-label col-sm-4" title="">
							<span class=" "></span> 确认密码：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="rePassword" type="password"/>
					</div>
				</div>
			</div>
		</div>
		
		<div class="box-title">
			<i class="font-italic" style="font-size:15px;color:#1e5edb;padding:0px 7px 0px 26px;">详细信息</i>
			<li class="short-gray-underline"></li>
		</div>
		
		<div class="row">
			<div class="col-xs-6">
				<!-- <div class="form-group"> -->
				<div class="input-group">
					<label class="control-label col-sm-4" title="">
							<span class="required "></span> 电子邮箱：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="email" value="${user.email}"/>
					</div>
				</div>
			</div>
			<div class="col-xs-6">
				<!-- <div class="form-group"> -->
				<div class="input-group">
					<label class="control-label col-sm-4" title="">
							<span class=" "></span> 手机号码：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="mobile" value="${user.mobile}"/>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-xs-6">
				<!-- <div class="form-group"> -->
				<div class="input-group">
					<label class="control-label col-sm-4" title="">
							<span class="required "></span> 性      别：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<select class="input-sm form-control" id="sex" name="sex" dictType="user_sex" defaultValue="${user.sex}"></select>
					</div>
				</div>
			</div>
			<div class="col-xs-6">
				<!-- <div class="form-group"> -->
				<div class="input-group">
					<label class="control-label col-sm-4" title="">
							<span class=" "></span> 出生日期：<i class="fa icon-question hide"></i></label>
					<div class="col-sm-8">
						<#form:input id="birthday" type="date" clickFun="laydate({istime: false, format: 'YYYY-MM-DD'})"/>
					</div>
				</div>
			</div>
		</div>
		
		<div class="row">
			<div class="button">
				<#form:button class="btn btn-info" name="提交" id="ensure" icon="fa-check" onclick="submitPage('/user/edit')"/>
				<#form:button class="btn btn-default" name="关闭" id="cancel" icon="fa-mail-reply-all" onclick="closePage()"/>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript" src="${ctxPath}/js/system/user/user.js"></script>
<%}%>